package com.asiainfo.kbisheet.components.condition.check
{
	import com.asiainfo.kbisheet.components.condition.ConditionInput;
	import com.asiainfo.kbisheet.components.condition.ConditionItem;
	
	import mx.controls.CheckBox;
	
	import spark.layouts.BasicLayout;

	/**
	 * 选择框(check)输入条件的单组件呈现
	 */
	public class ConditionInputCheck extends ConditionInput
	{
		private var checkBox:CheckBox;
		public function ConditionInputCheck(parent:ConditionItem)
		{
			super(parent);
		}
		
		override public function get value():String{
			return checkBox.selected.toString();
		}
		
		override protected function createChildren():void {
			checkBox = new CheckBox();
			addElement(checkBox);
		}
	}
}